<?php
$this->breadcrumbs = array(
    'Items' => array('index'),
    'Tạo mới',
);

$this->menu = array(
    array('label' => 'List Items', 'url' => array('index')),
    array('label' => 'Manage Item', 'url' => array('admin')),
);
?>
<h1>Create Item</h1>
<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'id' => 'item-form',
    'enableAjaxValidation' => false,
    'htmlOptions' => array(
        'enctype' => 'multipart/form-data',
    ),
        ));
?>

<p class="help-block">Fields with <span class="required">*</span> are required.</p>

<?php echo $form->errorSummary($model); ?>

<?php echo $form->textFieldRow($model, 'name', array('class' => 'span5', 'maxlength' => 40)); ?>

<?php echo $form->fileFieldRow($model, 'avatar', array('class' => 'span5', 'maxlength' => 100)); ?>

<div class="form-actions">
    <?php
    $this->widget('bootstrap.widgets.TbButton', array(
        'buttonType' => 'submit',
        'type' => 'primary',
        'label' => 'Tạo mới',
    ));
    ?>
</div>

<?php $this->endWidget(); ?>
